package com.yidu.hbatsams.dao;

import com.yidu.hbatsams.domain.AtsAttachment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AtsAttachmentMapper {
    /**
     *
     * @mbg.generated 2019-10-29
     */
    int deleteByPrimaryKey(Integer attachId);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insert(AtsAttachment record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insertSelective(AtsAttachment record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    AtsAttachment selectByPrimaryKey(Integer attachId);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKeySelective(AtsAttachment record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKey(AtsAttachment record);

    /**
     * 分页查询
     * @param atsAttachment
     * @return
     */
    List<AtsAttachment> select(AtsAttachment atsAttachment);
    /**
     * 按用户Id查询
     * @param
     * @return
     */
    List<AtsAttachment> findEmp(String userId);
    /**
     * 查询总行数
     * @param atsAttachment
     * @return
     */
    int selectCount(AtsAttachment atsAttachment);
    /**
     * 看登录的用户修改备注
     * @param atsAttachment
     * @return
     */
    int updateRemark(AtsAttachment atsAttachment);
}